From: Richard M. Stallman Date: Wed, 25 May 1994 08:42:32 +0000 (+0000) Subject: (c-fill-paragraph): Don't include part of comment X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~91384 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=84f4e2168f12f97db4b0d03242f12a18948bf190;p=emacs.git (c-fill-paragraph): Don't include part of comment terminator in the fill-prefix. --- diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 91016c99b9b..a2478b6edfa 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -386,6 +386,11 @@ preserving the comment indentation or line-starting decorations." (point)))) (beginning-of-line) (skip-chars-forward " \t*" max-prefix-end) + ;; Don't include part of comment terminator + ;; in the fill-prefix. + (and (eq (following-char) ?/) + (eq (preceding-char) ?*) + (backward-char 1)) (point))) ;; If the comment is only one line followed by a blank